<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
   return redirect('/admin');
//    return view('welcome');
});

Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');

//门店签到页面
Route::any('/home/sign', 'HomeController@index');
//用户端账单
Route::any('/home/bill', 'HomeController@getBill');
//app下载地址
Route::any('/home/download', 'HomeController@download');

Route::any('article/article', 'ArticleController@getArticle');

//站外扫码添加病历夹
Route::get('/case-history', 'CaseHistoryController@index');
Route::post('/getcase_describes', 'CaseHistoryController@getCaseDescribes');
Route::post('/getcase_detail', 'CaseHistoryController@getCaseDetail');
Route::get('/agreement', 'CaseHistoryController@agreement');
Route::get('/upagreement', 'CaseHistoryController@upagreement');
Route::post('/inputFile', 'CaseHistoryController@inputFile');
Route::post('/input', 'CaseHistoryController@inputInfo');
Route::post('/admin/ueditor/upload', '\Overtrue\LaravelUEditor\Controller@upload');